package com.study.utils.mybatisplus;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class ErrorCodeException extends RuntimeException {

    private Integer code;
    private String msg;

    public ErrorCodeException (int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
